let arr:(number|string)[] = ['a','c',6,'e',5,3,'d']

function change(arr:(number|string)[]):number[]{
    let arr1:number[]=[]
    for(let i=0;i<arr.length;i++){
        if(typeof arr[i] === 'number'){
            arr1.push(arr[i] as number *5)
        }
    }
    return  arr1
}
console.log(change(arr));
